import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class MatchDemo {

	public static void main(String[] args) {
		String html = "<a href='abc.swf'>abc.swf</a>";
		Pattern pattern = Pattern.compile("<a href=\'.*\'>.*</a>");
		Matcher matcher = pattern.matcher(html);
		while (matcher.find()) {
			System.out.println(matcher.group());
		}
	}

}
